/*
 * Copyright (C) 2023 xuexiangjys(xuexiangjys@163.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.xuexiang.templateproject.bean;

import android.os.Parcel;
import android.os.Parcelable;
//import anet.channel.strategy.dispatch.DispatchConstants;
//import com.taobao.accs.common.Constants;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
//import kotlinx.android.parcel.Parcelize;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public final class ImageEntity implements Parcelable {
    @NotNull
    public static final Parcelable.Creator<ImageEntity> CREATOR = new Creator();
    @NotNull
    private String cleanImageOss;
    @NotNull
    private String filePath;
    @NotNull
    private String imageOss;

    /* compiled from: UploadEntity.kt */
    @Metadata(k = 3, mv = {1, 7, 1}, xi = 48)
    /* loaded from: classes2.dex */
    public static final class Creator implements Parcelable.Creator<ImageEntity> {
        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        @NotNull
        public final ImageEntity createFromParcel(@NotNull Parcel parcel) {
            Intrinsics.checkNotNullParameter(parcel, "parcel");
            return new ImageEntity(parcel.readString(), parcel.readString(), parcel.readString());
        }

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // android.os.Parcelable.Creator
        @NotNull
        public final ImageEntity[] newArray(int i2) {
            return new ImageEntity[i2];
        }
    }
    public ImageEntity(String filePath) {
        this.filePath = filePath;
    }
    public ImageEntity(@NotNull String imageOss, @NotNull String cleanImageOss, @NotNull String filePath) {
        this.imageOss = imageOss;
        this.cleanImageOss = cleanImageOss;
        this.filePath = filePath;
    }

    public static /* synthetic */ ImageEntity copy$default(ImageEntity imageEntity, String str, String str2, String str3, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            str = imageEntity.imageOss;
        }
        if ((i2 & 2) != 0) {
            str2 = imageEntity.cleanImageOss;
        }
        if ((i2 & 4) != 0) {
            str3 = imageEntity.filePath;
        }
        return imageEntity.copy(str, str2, str3);
    }

    @NotNull
    public final String component1() {
        return this.imageOss;
    }

    @NotNull
    public final String component2() {
        return this.cleanImageOss;
    }

    @NotNull
    public final String component3() {
        return this.filePath;
    }

    @NotNull
    public final ImageEntity copy(@NotNull String imageOss, @NotNull String cleanImageOss, @NotNull String filePath) {
        Intrinsics.checkNotNullParameter(imageOss, "imageOss");
        Intrinsics.checkNotNullParameter(cleanImageOss, "cleanImageOss");
        Intrinsics.checkNotNullParameter(filePath, "filePath");
        return new ImageEntity(imageOss, cleanImageOss, filePath);
    }

    @Override // android.os.Parcelable
    public int describeContents() {
        return 0;
    }

    public boolean equals(@Nullable Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof ImageEntity)) {
            return false;
        }
        ImageEntity imageEntity = (ImageEntity) obj;
        return Intrinsics.areEqual(this.imageOss, imageEntity.imageOss) && Intrinsics.areEqual(this.cleanImageOss, imageEntity.cleanImageOss) && Intrinsics.areEqual(this.filePath, imageEntity.filePath);
    }

    @NotNull
    public final String getCleanImageOss() {
        return this.cleanImageOss;
    }

    @NotNull
    public final String getFilePath() {
        return this.filePath;
    }

    @NotNull
    public final String getImageOss() {
        return this.imageOss;
    }

    public int hashCode() {
        return (((this.imageOss.hashCode() * 31) + this.cleanImageOss.hashCode()) * 31) + this.filePath.hashCode();
    }

    public final void setCleanImageOss(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.cleanImageOss = str;
    }

    public final void setFilePath(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.filePath = str;
    }

    public final void setImageOss(@NotNull String str) {
        Intrinsics.checkNotNullParameter(str, "<set-?>");
        this.imageOss = str;
    }

    @NotNull
    public String toString() {
        return "ImageEntity(imageOss=" + this.imageOss + ", cleanImageOss=" + this.cleanImageOss + ", filePath=" + this.filePath + ')';
    }

    @Override // android.os.Parcelable
    public void writeToParcel(@NotNull Parcel out, int i2) {
        Intrinsics.checkNotNullParameter(out, "out");
        out.writeString(this.imageOss);
        out.writeString(this.cleanImageOss);
        out.writeString(this.filePath);
    }
}